home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 8 / The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO / prg_casm / snip9611.zip / FTIME.H < prev    next >
C/C++ Source or Header  |  1996-11-24  |  809b  |  36 lines

  1. /* +++Date last modified: 28-Sep-1996 */
  2.  
  3. /*
  4. **  Public domain by Jeff Dunlop
  5. */
  6.  
  7. #ifndef FTIME__H
  8. #define FTIME__H
  9.  
  10. #include <dos.h>
  11. #include <time.h>
  12.  
  13. #if !defined(__TURBOC__) && !defined(__SC__) && !defined(__POWERC)
  14.  
  15. struct ftime /* As defined by Borland & Symantec */
  16. {
  17.     unsigned    ft_tsec  : 5;   /* Two second interval */
  18.     unsigned    ft_min   : 6;   /* Minutes */
  19.     unsigned    ft_hour  : 5;   /* Hours */
  20.     unsigned    ft_day   : 5;   /* Days */
  21.     unsigned    ft_month : 4;   /* Months */
  22.     unsigned    ft_year  : 7;   /* Year */
  23. };
  24.  
  25. int getftime (int, struct ftime *);
  26. int setftime (int, struct ftime *);
  27.  
  28. #else
  29.  #include <io.h>
  30. #endif
  31.  
  32. void   ftime2tm(struct ftime *ft, struct tm *time);
  33. time_t ftime2time(struct ftime *ft);
  34.  
  35. #endif /* FTIME__H */
  36.